package com.qys.livesMall.app.user.model.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serial;
import java.io.Serializable;

/**
 * <p>
 * 用户银行卡信息
 * </p>
 *
 * @author dp
 * @since 2023-04-27
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("h2_app_user_bank")
@Schema(name = "H2AppUserBank对象", description = "用户银行卡信息")
public class H2AppUserBank implements Serializable {
    @Serial
    private static final long serialVersionUID = 1L;
    @TableId("id")
    private String id;

    @Schema(description = "用户Id")
    @TableField("user_id")
    private String userId;

    @Schema(description = "银行名称")
    @TableField("bank_name")
    private String bankName;

    @Schema(description = "银行卡号(合约地址)")
    @TableField("bank_no")
    private String bankNo;

    @Schema(description = "银行卡类型(0储蓄卡,1信用卡)")
    @TableField("card_type")
    private Byte cardType;

    @Schema(description = "卡包类型(0银行卡,1USDT,2BIT)")
    @TableField("type")
    private Byte type;

    @Schema(description = "合约网络协议")
    @TableField("usdt_type")
    private String usdtType;

    @Schema(description = "用户名")
    @TableField("user_name")
    private String userName;

    @Schema(description = "银行卡用户名")
    @TableField(exist = false)
    private String bankUserName;

    @Schema(description = "删除")
    @TableField("deleted")
    private Integer deleted;

    @Schema(description = "卡包关联ID")
    private Long bankId;

    public String getBankUserName() {
        return userName;
    }
}
